{include file=member.header.html}
<script type="text/javascript">
$(function(){
    $('#password_form').validate({
        errorPlacement: function(error, element){
            $(element).next('.field_notice').hide();
            $(element).after(error);
        },
        success       : function(label){
            label.addClass('validate_right').text('OK!');
        },
        rules : {
            y_password : {
                required : true
            },
            new_password : {
                required   : true,
                minlength  : 8,
                maxlength  : 20
            },
            confirm_password : {
                required   : true,
                equalTo    : '#new_password'
            }
        },
        messages : {
            y_password : {
                required : '密码不能为空'
            },
            new_password  : {
                required   : '支付密码不能为空',
                minlength  : '密码长度应在8-20个字符之间'
            },
            confirm_password : {
                required   : '支付密码不能为空',
                equalTo    : '两次输入的支付密码不相符'
            }
        }
    });
});
</script>
<style type="text/css">
.set_password{ overflow:hidden;}
.set_password h3{ color:#F00; height:40px; font-size:20px; line-height:40px;}
.set_password strong{ color:#F00; font-size:16px;}
.set_password th{width:150px;  font-weight:bold; font-size:14px;color:#333; text-align:right;}
.set_password td{font-size:13px;}
.set_password td font{font-size:12px; color:#999}
</style>
<div class="content_color">
<div class="content">
  {include file=member.menu.html}
  <div id="right">
    {include file=member.submenu.html}
      <div class="wrap">
          <div class="public_select table">
          
          <div class="my_money">
          <div class="set_password">
          <h3>设置/修改支付密码 （支付密码用于：1、支付货款；2、提取现金） </h3><br />
            <form method="POST" id="password_form">
             <table>
                  <tr>
                    <th>收银台账号：</th>
                    <td><strong>{$visitor.user_name|escape}</strong></td>
                  </tr>
                  <!--{if $money_pass}-->
                  <tr>
                    <th>以前的支付密码：</th>
                    <td><input type="password" class="text width5" name="y_password" id="y_password"/> <font>请输入您之前设置的支付密码</font></td>
                  </tr>       
                  <!--{else}-->
                  <tr>
                    <th>登陆密码：</th>
                    <td><input type="password" class="text width5" name="y_password" id="y_password"/> <font>请输入您会员的登录密码</font></td>
                  </tr>   
                  <!--{/if}-->        
                  <tr>
                      <th>设置支付密码：</th>
                      <td><input type="password" class="text width5" name="new_password" id="new_password"/> 
                      <font>长度为8-20位</font></td>
                  </tr>
                  <tr>
                      <th>重复输入支付密码：</th>
                      <td><input type="password" class="text width5" name="confirm_password"/> 
                        <font>长度为8-20位</font></td>
                  </tr>
                  <tr>
                    <td></td>
                    <td><span style="color:red">强烈建议：支付密码与登录密码最好不一致。</span></td>
                  </tr>
                  <tr>
                      <td></td>
                      <td><input type="submit" value="{$lang.submit}" name="Submit" class="submit_btn"> <a href="index.php?app=my_money&amp;act=account_security" style="padding:10px;display:block">忘记支付密码？</a></td>
                  </tr>
             </table>
            </form>
            </div>
          </div>        
          </div>
      </div>
      <div class="clear"></div>
  </div>
    <div class="clear"></div>
</div>
<iframe name="iframe_post" id="iframe_post" width="0" height="0"></iframe>
</div>
{include file=footer_member.html}